# -*- coding: utf-8 -*-
# @Time : 2018/12/24 15:47
# @Author : Administrator
# @File : driver_test.py
# @Project : python_demo
# @title :驱动测试执行

from py41.http_test.httptestV2 import AgileoneAdd
from py41.http_test.read_data import Common

common = Common()
login_data = common.read_data("testdata.csv")
# print(login_data[0])
for i in range(0, 3):
    username = login_data[i]["username"]
    password = login_data[i]["password"]
    savelogin = login_data[i]["savelogin"]
    expect = login_data[i]["expect"]
    # print(expect)
    AgileoneAdd().test_login(username, password, savelogin, expect)